package cn.edu.xust.Vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author ufo
 * @Description TODO
 * @Date 2021/8/25 15:15
 * @Version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PmsDateVo implements Comparable<PmsDateVo> {


    //客人姓名
    String name;

    //发生时间
    Date happendate;

    //类型 1入住 0 退房
    String type;

    @Override
    public int compareTo(PmsDateVo o) {
        return this.happendate.compareTo(o.getHappendate());
    }
}
